Resolving blockchain domains

ABSTRACT

A request to resolve at least a name of a domain of a name identifier is received. It is automatically determined that the name of the domain is to be resolved using a blockchain. The identifier of the non-fungible token is used to send a request to a smart contract associated with the blockchain to obtain one or more resolution records for the domain. The blockchain stores the non-fungible token associating the domain to an account address of an owner of the domain. The one or more resolution records of the domain are received. The received one or more resolution records are used to resolve at least the name of the domain.

CROSS REFERENCE TO OTHER APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.17/486,512 entitled RESOLVING BLOCKCHAIN DOMAINS filed Sep. 27, 2021which is incorporated herein by reference for all purposes, which claimspriority to U.S. Provisional Patent Application No. 63/084,493 entitledBLOCKCHAIN DOMAINS filed Sep. 28, 2020 which is incorporated herein byreference for all purposes.

BACKGROUND OF THE INVENTION

Domain name system (DNS) is a naming system for computer resourcesconnected to a network. It allows a user to refer to the resource usinga human-friendly identifier that is easy to understand and rememberrather than requiring the user to use a native functional identifierthat is often unintuitive and difficult to remember. For example, thedomain name system allows a user to reference a website by itshuman-friendly hostname/URL (Uniform Resource Locator) rather than usingits IP (Internet Protocol) address. Typically a domain name registraracts as a centralized entity that manages registration, record updating,transfer, and hosting of a domain name system. However, this centralizedmanagement and execution of the domain name system concentrates powerand innovation in a central entity that may not be able to fulfill itsduty in the best interest of the community. For example, the centralentity may become a central point of failure, stifle innovation, orunjustly institute policies that prevent flow of information. Oftenusers utilize a web browser to access web resources identified using adomain name. If a new mechanism to resolve domains is to be implemented,there exists a need for a way to enable the web browser to resolve thesedomains using the new mechanism.

BRIEF DESCRIPTION OF THE DRAWINGS

Various embodiments of the invention are disclosed in the followingdetailed description and the accompanying drawings.

FIG. 1 is a block diagram illustrating an embodiment of blockchain smartcontracts utilized to implement a name service on a blockchain.

FIG. 2 is a block diagram illustrating additional details of anembodiment of an implementation of blockchain smart contracts of adecentralized name service.

FIG. 3 is a flowchart illustrating an embodiment of a process formanaging a domain of a blockchain-based name service.

FIG. 4 is a flowchart illustrating an embodiment of a process forupdating target records of a domain managed using a blockchain-basedname service.

FIG. 5 is a flow diagram illustrating an embodiment of performing ameta-transaction for a domain managed using a blockchain-based nameservice.

FIG. 6 is a flowchart illustrating an embodiment of a process forresolving a domain managed using a blockchain-based name service.

FIG. 7 is a flow diagram illustrating an embodiment of resolving a nameidentifier using a blockchain-based name service for a cryptocurrencytransaction.

FIG. 8 is a flow diagram illustrating an embodiment of using a proxyreader smart contract to resolve a target record of a domain managedusing a blockchain-based name service.

FIG. 9 is a block diagram illustrating an embodiment of ablockchain-based name service environment.

FIG. 10 is a functional diagram illustrating a programmed computersystem for using, managing, or executing a blockchain-based name servicein accordance with some embodiments.

FIG. 11 is a block diagram illustrating an embodiment of a system forresolving a name of a domain of a decentralized blockchain-based nameservice.

FIG. 12 is a flowchart illustrating an embodiment of a process forresolving a name identifier.

FIG. 13 is a flow diagram illustrating an embodiment of a process forrequesting and receiving decentralized web (dWeb) content.

FIG. 14 is a flow diagram illustrating an embodiment of a process forrequesting and receiving decentralized web content via remote gateways.

FIG. 15 is a flowchart illustrating an embodiment for handling protocolpriority when performing domain resolution for a domain resolved using ablockchain of a blockchain-based name service.

DETAILED DESCRIPTION

The invention can be implemented in numerous ways, including as aprocess; an apparatus; a system; a composition of matter; a computerprogram product embodied on a computer readable storage medium; and/or aprocessor, such as a processor configured to execute instructions storedon and/or provided by a memory coupled to the processor. In thisspecification, these implementations, or any other form that theinvention may take, may be referred to as techniques. In general, theorder of the steps of disclosed processes may be altered within thescope of the invention. Unless stated otherwise, a component such as aprocessor or a memory described as being configured to perform a taskmay be implemented as a general component that is temporarily configuredto perform the task at a given time or a specific component that ismanufactured to perform the task. As used herein, the term ‘processor’refers to one or more devices, circuits, and/or processing coresconfigured to process data, such as computer program instructions.

A detailed description of one or more embodiments of the invention isprovided below along with accompanying figures that illustrate theprinciples of the invention. The invention is described in connectionwith such embodiments, but the invention is not limited to anyembodiment. The scope of the invention is limited only by the claims andthe invention encompasses numerous alternatives, modifications andequivalents. Numerous specific details are set forth in the followingdescription in order to provide a thorough understanding of theinvention. These details are provided for the purpose of example and theinvention may be practiced according to the claims without some or allof these specific details. For the purpose of clarity, technicalmaterial that is known in the technical fields related to the inventionhas not been described in detail so that the invention is notunnecessarily obscured.

A decentralized name service based on blockchain technology isdisclosed. In some embodiments, the name service is based on a set ofsmart contracts on the crypto blockchain (e.g., Ethereum blockchain)that govern how domains are created and used. Although it can serve asimilar purpose as a traditional DNS system, a decentralized nameservice has architectural differences that change the interaction model.For example, decentralized name service domains can be ownedirrevocably. In some embodiments, they do not need to be renewed andcannot be reclaimed by a central authority. For example, once claimed,users have complete control of their domains. The blockchain is adecentralized and distributed computer ledger that records transactionsthat are publicly viewable and verifiable. The transactions can beaudited to ensure an object tracked on the blockchain has beentransferred only once between each party in each transaction withoutbeing reproduced to be double spent. By tracking ownership of a domainon the name service blockchain, public, secure, and verifiable ownershipof a domain is ensured.

The decentralized name service is deployed using smart contracts. Asmart contract includes self-executing code that functions to implementan agreement deployed to store state and execute code on the blockchain.This allows an agreed upon contract code to execute in a distributed andverifiable manner. The smart contracts of the decentralized name servicegovern how domains are created, managed, and utilized. For example,every domain is issued a non-fungible token on the blockchain that isowned by an owner (e.g., irrevocably—cannot be reclaimed by a centralauthority and does not need to be renewed). The owner can transferownership of the token to transfer ownership of the domain to anotheruser via a compatible wallet, exchange, or marketplace rather than onlyfrom a single central authority.

In various embodiments, use of a domain of the decentralizedblockchain-based name service to reference web content is supporteddirectly by a web browser, via an intermediary gateway/server, and/orvia a browser plugin/extension. In some embodiments, in response to arequest received to resolve a name identifier of a web content, it isautomatically determined that the domain of the name identifier is to beresolved using a blockchain. For example, a user inputs a UniformResource Locator (URL) of a webpage that the user desires to view on aweb browser, and because the top level domain of the URL is determinedto be associated with a decentralized name service it is automaticallydetermined that the domain of the name identifier is to be resolvedusing a blockchain of the decentralized name service. A request is sentto a smart contract of the blockchain to obtain one or more resolutionrecords for the domain of the name identifier and these one or morerecords are received. The received one or more resolution records areused to resolve the domain of the name identifier. For example, the oneor more resolution records specify configurations and/or a targetdestination location/address for the domain of the name identifier andthese record(s) are used to resolve the domain to a specified IPaddress, and redirect to an alternate address, a decentralized web(DWeb) content hash identifier, and/or any other information that can beused to obtain web content referenced by the name identifier.

FIG. 1 is a block diagram illustrating an embodiment of blockchain smartcontracts utilized to implement a name service on a blockchain. In someembodiments, the shown blockchain smart contracts are executed by one ormore networked computers implementing a distributed blockchain (e.g.,one or more computers of blockchain 908 of FIG. 9 ). Two different typesof smart contracts utilized for the name service include a registrysmart contract and a resolver smart contract. These smart contracts maybe deployed on the Ethereum open-source blockchain but may be deployedin other blockchains in various different embodiments. The registrysmart contract can function to map each registered domain to an owneraccount address and a specific corresponding resolver smart contractthat can be used to resolve a name identifier of the domain to a targetrecord (e.g., IP address, cryptocurrency address, etc.). By separatingthe registry functionality and resolution functionality into differentsmart contracts, different types of resolver contracts can be linked toa domain, allowing an owner to either use a standard resolver smartcontract or a custom resolver smart contract. Multiple different domainsof the registry smart contract can point to the same resolver smartcontract.

In the example diagram 100 shown in FIG. 1 , registry smart contract 102stores entries associated with three domains. Each of these domains isassociated with a non-fungible token stored on a blockchain andassociate together a name identifier of each domain to an owner accountaddress and an address of a resolver smart contract that is to be usedto resolve the name identifier of the domain. First, two domains ofregistry smart contract 102 reference the same standard resolvercontract 104 that can resolve name identifiers of a plurality ofdifferent domains. The third shown domain of registry smart contract 102references a different custom resolver contract 106 that may functiondifferently from resolver contract 104 in resolving its associateddomain(s). Each resolver smart contract includes records for one or moredifferent domains and specifies how and what the name identifier of eachdomain is to be resolved to corresponding target identifier(s). A singlename identifier of one domain may map to a plurality of different targetidentifiers that are of different types. For example, “alice.crypto”name identifier may resolve to an IP address when requested via a webbrowser and may resolve to a cryptocurrency address when used as apayment target.

FIG. 2 is a block diagram illustrating additional details of anembodiment of an implementation of blockchain smart contracts of adecentralized name service. In some embodiments, the shown blockchainsmart contracts are executed by one or more networked computersimplementing a distributed blockchain (e.g., one or more computers ofblockchain 908 of FIG. 9 ). As shown in diagram 200, registry smartcontract 202 defines and manages ownership of domains on the blockchain.For example, it defines ownership rules, how new domains are created andtransferred, manages the non-fungible token (e.g., ERC-721 token)representing each domain, and stores metadata of domains on theblockchain. Each domain created and managed via registry smart contract202 is associated with its unique non-fungible token and domain record.In some embodiments, the domain record for a domain stores an accountaddress of the owner of the domain (e.g., user account address), anidentifier (e.g., address) of a resolver smart contract assigned toresolve the domain, an optional address of another approved user allowedto manage the specific domain on behalf of the owner, and an identifierof the domain (e.g., hashed version of the name of the domain allowingusers to reference the domain record by hashing the name of the domainto obtain the hash that can be used as an identifier of the name of thedomain). Users can invoke a program function of registry smart contract202 to read, modify, and/or manage a domain record of registry smartcontract 202.

In the event an owner desires to allow another account to manage everydomain owned by the user (e.g., instead of just individual domains), theowner is able to add the account address of another user as an operatorin a user record of the owner stored by registry smart contract 202. Theadded user now becomes that operator for the owner and is able to accessand manage every domain of the owner. More than one authorized operatoruser can be added to the user record of a particular owner. The owner,the approved user, and the authorized operator user of a domain are ableto invoke a management function call of registry smart contract 202 totransfer domain ownership, set a new associated resolver smart contract,mint a new subdomain, or destroy the domain. Only the owner account isable to invoke a program function of registry smart contract 202 to addor remove the approved user and the authorized operator.

Each domain of the registry smart contract identifies a correspondingassociated resolver smart contract that is used for resolving domainsand storing domain records. Using this separate resolver smart contract,domain owners and authorized users can store target records for the nameidentifier of a domain for resolution (e.g., cryptocurrency addresses,chat IDs, and IPFS hashes for decentralized web webpages, etc.). Forexample, the resolver smart contract stores in a blockchain the targetrecords of one or more domains and a program function of the registrysmart contract is able to be invoked to update a target record or obtaina target record for a domain. Thus, a user is able to use registry smartcontract 202 to look up an address of a resolver smart contract for aname of a domain and request to this resolver smart contract aresolution of the name of the domain. A domain of registry smartcontract 202 is able to point to any resolver smart contract whether itbe a standard/default resolver smart contract (e.g., smart contract 204)that is available to use as a default or a custom resolver smartcontract (e.g., smart contract 206) that a user is able to customize anddeploy to perform any custom functionality as desired. For example, asmart contract can be programmed to even invoke another smart contract.

A single resolver smart contract may be able to manage and handleresolution of multiple different domains. Default resolver smartcontract 204 includes a different preset for different domains and eachpreset holds records for the domain. For example, the records inside theresolver smart contract are stored as a nested mapping from Domain TokenID->Preset ID->Key->Value. This nested structure allows users toconfigure domains on the un-enumerable Ethereum mappings (e.g., it isexpensive and unreliable to store an enumerable data structure onEthereum). This allows an authorized user to change the presetassociated with a domain to link an entirely different set of records tothe domain.

The same name of a domain is able to be resolved into multiple differenttarget records of different types. For example, a request to resolve aname of a domain identifies a desired target identifier or action typeand the resolver smart contract looks up and returns a targetidentifier/action of a particular type among many different types storedby the resolver smart contract for the same domain. Thus resolver smartcontract 204 stores in its records for a particular domain, key-valuepairs of target identifier/action type keys and target identifiervalues, allowing the resolver smart contract to effectively map a domain(e.g., hash of a name of the domain) to key-value dictionaries ofrecords.

An example of a list of record types able to be stored andreturned/performed by a resolver smart contract includes: acryptocurrency account address, a preferred browser protocol, a browserredirect URL (e.g., allowing redirection at the name service level), adecentralized web record, an IPFS network content hash, a swarm networkcontent hash, a web Domain Name System (DNS) record, a default DNStime-to-live (TTL) setting, a DNS Canonical Name (CNAME), an IP address,a deprecated record, an account username, a chat user identifier, asocial network user identifier, or any communication user identifier.

In some embodiments, the name service does not prohibit an authorizeduser from assigning any record of a domain to any value. However, a listof known standard records is defined to allow standard interpretation byclients. In some embodiments, standard record types include:

-   -   crypto.*—Records related to crypto payments    -   dns.*—DNS resolution records    -   dweb.*—Resolution records related to distributed content network        protocols    -   browser.*—Resolution configuration/preference records for web        browser        The name service allows a human-readable name to be used instead        of a destination address for a cryptocurrency payment.        Cryptocurrency wallets that use this feature can resolve a        domain to an underlying cryptocurrency address in the same way a        browser resolves a domain to an IP address. Cryptocurrency        addresses are stored in the resolver smart contract within the        crypto.* standard namespace of the domain. Each currency address        is stored as a “crypto.<TICKER>.address” record. For example, a        Bitcoin address is stored in “crypto.BTC.address.” Addresses are        stored in plain text format according to an address space        standard established by each currency. The currency's namespace        can contain additional currency-specific attributes to        facilitate payment delivery.

FIG. 3 is a flowchart illustrating an embodiment of a process formanaging a domain of a blockchain-based name service. In someembodiments, at least a portion of the process of FIG. 3 is implementedon management server(s) (e.g., one or more servers of server(s) 904 ofFIG. 9 ) providing a service to manage blockchain-based name serviceexecuting on distributed computers of a blockchain. In some embodiments,at least a portion of the process of FIG. 3 is implemented on one ormore networked computers implementing a distributed blockchain (e.g.,one or more computers of blockchain 908 of FIG. 9 ). An example of asmart contract that is used to execute the process of FIG. 3 is registrysmart contract 102 and/or 202 of FIGS. 1 and 2 .

At 302, a request specifying a management action to be performed isreceived. In some embodiments, the request is made to a registry smartcontract by a requester by performing a program function call to anaddress of the registry smart contract on a blockchain. The managementaction may be one or more of the following: transfer a domain to a newowner, set a resolver contract for a domain, create a new subdomain forthe domain, remove/burn a domain, add or remove an approved account thatcan control the domain, or add or remove an operator account for anowner that can control every domain owned by the owner (e.g., therequest is for an owner account rather than only for a specific domain).The request identifies the domain via a hash identifier (e.g., serves asthe identifier of the non-fungible token representing the domain). Thehash identifier is a more storage efficient representation of the nameof the domain and the name of the domain can be easily converted to ahash identifier using a hash function.

At 304, it is determined whether the request specifying the managementaction is authorized. The request is authorized to be provided by anowner of a domain, an approved alternative account specified for thedomain (e.g., specified using the registry smart contract), or anoperator account specified (e.g., using the registry smart contract) tobe allowed to control every domain owned by the owner. In order to provethat the user account that provided the request is authentic, the useraccount can sign the request using a private cryptographic key of theuser account and this signature is verified using a public key of theuser account to authenticate the user account. If the authenticated useraccount is an owner, an approved account, or an operator of the domainaccording to the blockchain record of the registry smart contract, it isdetermined that the request is authorized. If the account that providedthe request cannot be authenticated or the authenticated user account isnot authorized for the domain, the request is not authorized.

In some embodiments, an authorized account is able to provide temporaryauthorization on a per management action transaction level by signing arequest message for another account that can provide the request messagefor later execution when presented. For example, to grant temporarymanagement authority on a per request level via a meta-transaction, anowner, an approved account, or an operator for a domain is able to signa request using its private cryptographic key and provide it to anotheruser/account that will issue the request for execution when desired.This allows the authorized management of the meta-transaction to beasynchronously executed when desired by the other user/account. In theevent the received request is specified as a meta-transaction, therequest includes the signature of the authorized account of the domainof the request (different from the account that provided the request)and this signature is verified to ensure it is authentic. If it isauthentic and the account that signed it is an owner, an approvedaccount, or an operator for the domain, it is determined that therequest is authorized. Otherwise, the meta-transaction request is notauthorized. Additional details on meta-transactions are discussed laterin the specification in conjunction with FIG. 5 .

At 306, the management action is allowed to be performed if the requestis determined to be authorized. For example, the domain of the requestis transferred to a new owner, a resolver contract is set for thedomain, a subdomain is created for the domain, the domain isdeleted/burned, an approved account that can control the domain is addedor removed, or an operator account for an owner that can control everydomain owned by the owner is added or removed.

FIG. 4 is a flowchart illustrating an embodiment of a process forupdating target records of a domain managed using a blockchain-basedname service. In some embodiments, at least a portion of the process ofFIG. 4 is implemented on one or more networked computers implementing adistributed blockchain (e.g., one or more computers of blockchain 908 ofFIG. 9 ). In some embodiments, at least a portion of the process of FIG.4 is implemented on management server(s) (e.g., one or more servers ofserver(s) 904 of FIG. 9 ) providing a service to manage blockchain-basedname service executing on distributed computers of a blockchain. Anexample of a smart contract that is used to execute the process of FIG.4 is resolver smart contract 104 and/or 204 of FIGS. 1 and 2 .

At 402, a request to update for a domain, a target record of a specifiedtype is received. In some embodiments, the request is made to a resolversmart contract of the domain by a requester by performing a programfunction call to an address of the resolver smart contract on ablockchain. In some embodiments, the resolver smart contract for thedomain is identified by requesting an address of the resolver smartcontract of the domain to a registry smart contract. The request toupdate a target record identifies the domain via a hash identifier ofthe name of the domain (e.g., serves as the identifier of thenon-fungible token representing the domain).

The same name of a domain is able to be resolved into multiple differenttarget records of different types. For example, a request to resolve aname of a domain identifies a desired target identifier or action typeand the resolver smart contract is to look up and return a targetidentifier/action of a particular type among many different types storedby the resolver smart contract for the same domain. Thus the resolversmart contract is able to store in its records for the particulardomain, key-value pairs of target record type keys and target identifiervalues, allowing the resolver smart contract to effectively map thedomain (e.g., hash of a name of the domain) to key-value dictionaries ofrecords. The received request may specify a command to add, modify, ordelete the target record of the domain using a target record type (e.g.,key) and/or a corresponding data/identifier (e.g., value) specified inthe request.

In response to the request, it is determined whether the request isauthorized. The request is authorized to be provided by an owner of adomain, an approved alternative account specified for the domain (e.g.,specified using the registry smart contract), or an operator accountspecified (e.g., using the registry smart contract) to be allowed tocontrol every domain owned by the owner. In order to prove that the useraccount that provided the request is authentic, the user account canauthenticate the request using a private cryptographic key of the useraccount and this signature is verified using a public key of the useraccount to authenticate the user account. In some embodiments, becausethe authorized account information is stored in the separate registrysmart contract, the registry smart contract is consulted to determine ifthe authenticated user account is an owner, an approved account, or anoperator of the domain according to the blockchain record of theregistry smart contract. If the authenticated user account is anauthorized user account, it is determined that the request isauthorized. If the account that provided the request cannot beauthenticated or the authenticated user account is not authorized forthe domain, the request is not authorized and the request is rejected.

In some embodiments, the received request is specified as ameta-transaction and the request includes the signature of theauthorized account of the domain of the request (different from theaccount that provided the request) and this signature is verified toensure it is authentic. If it is authentic and the account that signedit is an owner, an approved account, or an operator for the domain, itis determined that the request is authorized. Otherwise, themeta-transaction request is not authorized. Additional details onmeta-transactions are discussed later in the specification inconjunction with FIG. 5 .

At 404, a blockchain of a resolver smart contract is updated toassociate the target record of the specified type to the domain. Asingle resolver smart contract may be able to manage and handleresolution of multiple different domains and the resolver smart contractincludes a different preset for different domains and each preset holdsrecords for the domain. For example, the records inside the resolversmart contract are stored as a nested mapping from Domain TokenID->Preset ID->Key->Value. This nested structure allows users toconfigure domains on the un-enumerable Ethereum mappings (e.g., it isexpensive and unreliable to store an enumerable data structure onEthereum), allowing an authorized user to change the preset associatedwith a domain to link an entirely different set of records to thedomain. Using the token identifier of the domain included in a request,the resolver smart contract identifies the corresponding preset and thetype and value of the target record (e.g., key/value pair) are updated(e.g., added, removed, or modified) under the identified preset.

An example of a list of record types able to be updated by the resolversmart contract is as follows: a cryptocurrency account address, apreferred browser protocol, a browser redirect URL (e.g., allowingredirection at the name service level), a decentralized web record, anIPFS network content hash, a swarm network content hash, a web DNSrecord, a default TTL setting, a DNS CNAME, an IP address, a deprecatedrecord, an account username, a chat user identifier, a social networkuser identifier, or any communication user identifier.

FIG. 5 is a flow diagram illustrating an embodiment of performing ameta-transaction for a domain managed using a blockchain-based nameservice. Examples of the meta-transaction include the request to theregistry smart contract in 302 specifying a management action to beperformed and the request to the resolver smart contract in 402 toupdate for the domain, a target record of a specified type.

In some embodiments, an authorized account for a domain is able toprovide authorization on a per management transaction level by signingthe request that can be invoked by another account when desired. Forexample, to grant temporary management authority on a per request levelvia a meta-transaction, an owner, an approved account, or an operatorfor a domain is able to sign a request using its private cryptographickey and provide to another user/account that will provide the requestfor execution when desired. This allows the authorized management of themeta-transaction to be asynchronously executed when desired by the otheruser/account. In the event the received request is specified as ameta-transaction, the request includes the signature of the authorizedaccount of the domain of the request (different from the account thatprovided the request) and this signature can be verified to ensure it isauthentic. If it is authentic and the account that signed it is anowner, an approved account, or an operator for the domain, it isdetermined that the request is authorized. Otherwise, themeta-transaction request is not authorized.

In some embodiments, the registry smart contract and/or the resolversmart contract includes special program functions that can be called toindicate that the requested transaction is a meta-transaction. Forexample, each management function of the smart contracts has acorresponding meta-transaction version that allows as an argument/inputto provide a message signed by an authorized account of the domain. Thisallows a third party to submit transactions on behalf of an authorizedaccount while still allowing the authorized account to still manage itsdomain in a self-custodial capacity

In transaction flow diagram 500 shown in FIG. 5 , an authorized accountuses the front end (e.g., client 902 of FIG. 9 ) to indicate, via userinput 502 for a domain, a transaction desired to be executed on behalfof the user. In step 504, the front end generates the message specifyingand authorizing the meta-transaction. The message identifies the desiredaction/function desired to be executed by the meta-transaction as wellas its parameters. The message is signed using the cryptographic key(e.g., private key) of the authorized account to prove its authenticity.

The message may include a domain based meta-transaction nonce to preventthe message from being replayed (e.g., prevent it from being used morethan once). The nonce includes a transaction counter specificallytracked for each domain/token. This prevents replay attacks where atransfer of a token can be replayed over and over to continually revertthe state of the name back to a previous state. The nonce counter isincremented by one each time a state transition happens to a token.Domain token-based nonces can be also used to prevent mis-ordering oftransactions. For example, this prevents front running non-fungibleassets and enables secure transaction batching.

The generated message is included in a transaction request and sent in506 to the server (e.g., management server(s) 904 of FIG. 9 ) of thethird-party that will be submitting the meta-transaction on behalf ofthe authorized account of the domain. The server can hold thismeta-transaction until later when it desires to execute the transactionby submitting to the appropriate blockchain (e.g., blockchain 908 ofFIG. 9 ) smart contract in 508. This request by the server includes themessage signed by the authorized account of the domain and is alsosigned by the third-party requester submitting the meta-transactionusing its cryptographic key to generate its classical signaturetypically submitted to the blockchain to prove its authenticity.

The blockchain smart contract then checks the authorization to executethe meta-transaction in 510 by verifying that the included messagesignature purported to be signed by the authorized account (e.g., notthe signature of the submitter of the request in 508) was actuallysigned by an authorized account identified in the record of the registrysmart contract for the domain of the request. Once the message signatureis verified, the requested transaction is executed in 512 and aconfirmation of the execution is passed back in 514 and 516.

FIG. 6 is a flowchart illustrating an embodiment of a process forresolving a domain managed using a blockchain-based name service. Insome embodiments, at least a portion of the process of FIG. 6 isimplemented on one or more networked computers implementing adistributed blockchain (e.g., one or more computers of blockchain 908 ofFIG. 9 ). In some embodiments, at least a portion of the process of FIG.6 is implemented on management server(s) (e.g., one or more servers ofserver(s) 904 of FIG. 9 ) providing a service to manage blockchain-basedname service executing on distributed computers of a blockchain. Anexample of a smart contract that is used to execute the process of FIG.6 is resolver smart contract 104 and/or 204 of FIGS. 1 and 2 .

At 602, a request to resolve a name of a domain into a target record isreceived. In some embodiments, the request is made to a resolver smartcontract of the domain by a requester by performing a program functioncall to an address of the resolver smart contract on a blockchain. Insome embodiments, the resolver smart contract for the domain isidentified by requesting an address of the resolver smart contract ofthe domain to a registry smart contract. The request may identify thename of the domain via a hash identifier determined by hashing the nameusing a hash function. The request may also identify the type of targetrecord desired to be obtained. For example, the same name of a domain isable to be resolved into multiple different target records of differenttypes, and the request identifies one of these types desired to beobtained.

At 604, the requested target record is obtained and returned in responseto the request. For example, the resolver smart contract obtains thetarget record of a specified type for the domain from its blockchainstorage and returns the target record.

In some embodiments, because a single resolver smart contract may beable to manage and handle resolution of multiple different domains, theresolver smart contract includes a different preset for differentdomains and each preset holds records for the domain. For example, therecords inside the resolver smart contract are stored as a nestedmapping from Domain Token ID->Preset ID->Key->Value. This nestedstructure allows users to configure domains on the un-enumerableEthereum mappings (e.g., it is expensive and unreliable to store anenumerable data structure on Ethereum), allowing an authorized user tochange the preset associated with a domain to link an entirely differentset of records to the domain. Using the token identifier of the domainincluded in a request, the resolver smart contract identifies thecorresponding preset of the domain, obtains the target record of thetype (e.g., key of the record) specified by the request, and returns thevalue of the record. Examples of the return target record returnedinclude: a cryptocurrency account address, a preferred browser protocol,a browser redirect URL (e.g., allowing redirection at the name servicelevel), a decentralized web record, an IPFS network content hash, aswarm network content hash, a web DNS record, a default TTL setting, aDNS CNAME, an IP address, a deprecated record, an account username, achat user identifier, a social network user identifier, or anycommunication user identifier.

FIG. 7 is a flow diagram illustrating an embodiment of resolving a nameidentifier using a blockchain-based name service for a cryptocurrencytransaction. An example of a smart contract that is used to execute theflow of FIG. 7 is resolver smart contract 104 and/or 204 of FIGS. 1 and2 .

One way to integrate with the name service is through resolution of thename of the domain into a cryptocurrency address. This process convertsa human-readable name like “brad.crypto” to the cryptocurrency addressesthat the name service stores in its blockchain. For example, a user cansend a bitcoin to “brad.crypto” and it will go to Brad's bitcoinaddress. A user can also send an Ethereum coin to “brad.crypto” and itwill go to Brad's Ethereum address.

In the example shown in diagram 700, the application retrieves adomain's records through a resolver smart contract deployed on theblockchain (e.g., via the Ethereum or Zilliqa blockchains). In the showndiagram, an ETH cryptocurrency token is being sent to “example.crypto.”The application sends those two parameters to the resolver smartcontract on the Ethereum blockchain and it returns the record storedunder “crypto.ETH.address” for that domain. This address can be used tocomplete the ETH cryptocurrency token transfer.

FIG. 8 is a flow diagram illustrating an embodiment of using a proxyreader smart contract to resolve a target record of a domain managedusing a blockchain-based name service. In some embodiments, at least aportion of the process of FIG. 8 is implemented on one or more networkedcomputers implementing a distributed blockchain (e.g., one or morecomputers of blockchain 908 of FIG. 9 ). In the previously describedexamples of the registry smart contract (e.g., registry smart contract102 and/or 202 of FIGS. 1 and 2 ) and the resolver smart contract (e.g.,resolver smart contract 104 and/or 204 of FIGS. 1 and 2 ), anapplication/user desiring to resolve a name of the domain made a firstprogram function call to the registry smart contract to obtain theaddress of the resolver smart contract for the domain and then made asecond function call to the resolver smart contract to obtain the targetdomain record. However, making two different function calls to twodifferent smart contracts adds complexity to the name service that isundesirable for many users. In order to simplify the resolution of thedomain, a proxy reader smart contract that enables a single functioncall to handle this complexity for the user is shown in diagram 800.

The proxy reader smart contract receives request 802 to resolve a nameof a domain into a target record (e.g., the request received in 502 ofFIG. 5 ). Request 802 may include a hash of the name of the domain(e.g., Token ID) and an identifier of a type of target record desired tobe obtained. The proxy reader smart contract acts as a proxy to make theappropriate calls to both the registry smart contract and thecorresponding resolver smart contract, allowing the requester to make asingle call that returns the desired domain record. The proxy readersmart contract makes call 804 to the registry smart contract to requestthe address of the resolver smart contract corresponding to the domain(e.g., corresponding to the Token ID of the domain). The registry smartcontract returns response 806 providing the corresponding resolver smartcontract address. The proxy reader smart contract makes call 808 to theobtained resolver smart contract address to request the desired recordof the domain. The resolver smart contract returns response 810 thatprovides the desired record. This obtained record is then able to beprovided by the proxy reader smart contract to the requester in responseto request 802.

FIG. 9 is a block diagram illustrating an embodiment of ablockchain-based name service environment. Client 902 includes anycomputer using the blockchain-based name service. For example, client902 requests resolution of a name of a domain of the blockchain-basedname service to a target record, updates a target record for a name of adomain of the blockchain-based name service, and/or performs anymanagement action associated with a domain of the blockchain-based nameservice. Any number of client 902 may exist. A request sent by client902 is provided to management server(s) 904 and/or blockchain 908 viacomputer network 906. Management server(s) 904 includes one or moreservers providing a service to manage the blockchain-based name serviceexecuting on blockchain 908. For example, rather than directly managingthe blockchain-based name service on blockchain 908, an owner of adomain uses a service provided by management server(s) 904 to assist theowner by performing management actions on blockchain 908 for the owner.The owner may grant management server(s) 904 authorization to manage itsdomain(s) (e.g., via as an approved user, as an operator, or permanagement action meta-transaction). This allows a management actionrequest received at management server(s) 904 from client 904 to beinitiated by management server(s) 904 on blockchain 908. Blockchain 908includes one or more distributed network(s) of servers and computersimplementing a crypto blockchain (e.g., Ethereum blockchain) that enablesmart contracts of the blockchain-based name service to be executed.

FIG. 10 is a functional diagram illustrating a programmed computersystem for using, managing, or executing a blockchain-based name servicein accordance with some embodiments. As will be apparent, other computersystem architectures and configurations can be used to use, manage, orexecute the blockchain-based name service. Examples of computer system1000 includes client 902, one or more computers included in managementserver(s) 904, or one or more computers included in blockchain 908 ofFIG. 9 . Computer system 1000, which includes various subsystems asdescribed below, includes at least one microprocessor subsystem (alsoreferred to as a processor or a central processing unit (CPU)) 1002. Forexample, processor 1002 can be implemented by a single-chip processor orby multiple processors. In some embodiments, processor 1002 is a generalpurpose digital processor that controls the operation of the computersystem 1000. Using instructions retrieved from memory 1010, theprocessor 1002 controls the reception and manipulation of input data,and the output and display of data on output devices (e.g., display1018).

Processor 1002 is coupled bi-directionally with memory 1010, which caninclude a first primary storage, typically a random access memory (RAM),and a second primary storage area, typically a read-only memory (ROM).As is well known in the art, primary storage can be used as a generalstorage area and as scratch-pad memory, and can also be used to storeinput data and processed data. Primary storage can also storeprogramming instructions and data, in the form of data objects and textobjects, in addition to other data and instructions for processesoperating on processor 1002. Also as is well known in the art, primarystorage typically includes basic operating instructions, program code,data and objects used by the processor 1002 to perform its functions(e.g., programmed instructions). For example, memory 1010 can includeany suitable computer-readable storage media, described below, dependingon whether, for example, data access needs to be bi-directional orunidirectional. For example, processor 1002 can also directly and veryrapidly retrieve and store frequently needed data in a cache memory (notshown).

A removable mass storage device 1012 provides additional data storagecapacity for the computer system 1000, and is coupled eitherbi-directionally (read/write) or unidirectionally (read only) toprocessor 1002. For example, storage 1012 can also includecomputer-readable media such as magnetic tape, flash memory, PC-CARDS,portable mass storage devices, holographic storage devices, and otherstorage devices. A fixed mass storage 1020 can also, for example,provide additional data storage capacity. The most common example ofmass storage 1020 is a hard disk drive. Mass storage 1012, 1020generally store additional programming instructions, data, and the likethat typically are not in active use by the processor 1002. It will beappreciated that the information retained within mass storage 1012 and1020 can be incorporated, if needed, in standard fashion as part ofmemory 1010 (e.g., RAM) as virtual memory.

In addition to providing processor 1002 access to storage subsystems,bus 1014 can also be used to provide access to other subsystems anddevices. As shown, these can include a display monitor 1018, a networkinterface 1016, a keyboard 1004, and a pointing device 1006, as well asan auxiliary input/output device interface, a sound card, speakers, andother subsystems as needed. For example, the pointing device 1006 can bea mouse, stylus, track ball, or tablet, and is useful for interactingwith a graphical user interface.

The network interface 1016 allows processor 1002 to be coupled toanother computer, computer network, or telecommunications network usinga network connection as shown. For example, through the networkinterface 1016, the processor 1002 can receive information (e.g., dataobjects or program instructions) from another network or outputinformation to another network in the course of performingmethod/process steps. Information, often represented as a sequence ofinstructions to be executed on a processor, can be received from andoutputted to another network. An interface card or similar device andappropriate software implemented by (e.g., executed/performed on)processor 1002 can be used to connect the computer system 1000 to anexternal network and transfer data according to standard protocols. Forexample, various process embodiments disclosed herein can be executed onprocessor 1002, or can be performed across a network such as theInternet, intranet networks, or local area networks, in conjunction witha remote processor that shares a portion of the processing. Additionalmass storage devices (not shown) can also be connected to processor 1002through network interface 1016.

An auxiliary I/O device interface (not shown) can be used in conjunctionwith computer system 1000. The auxiliary I/O device interface caninclude general and customized interfaces that allow the processor 1002to send and, more typically, receive data from other devices such asmicrophones, touch-sensitive displays, transducer card readers, tapereaders, voice or handwriting recognizers, biometrics readers, cameras,portable mass storage devices, and other computers.

In addition, various embodiments disclosed herein further relate tocomputer storage products with a computer readable medium that includesprogram code for performing various computer-implemented operations. Thecomputer-readable medium is any data storage device that can store datawhich can thereafter be read by a computer system. Examples ofcomputer-readable media include, but are not limited to, all the mediamentioned above: magnetic media such as hard disks, floppy disks, andmagnetic tape; optical media such as CD-ROM disks; magneto-optical mediasuch as optical disks; and specially configured hardware devices such asapplication-specific integrated circuits (ASICs), programmable logicdevices (PLDs), and ROM and RAM devices. Examples of program codeinclude both machine code, as produced, for example, by a compiler, orfiles containing higher level code (e.g., script) that can be executedusing an interpreter.

The computer system shown in FIG. 10 is but an example of a computersystem suitable for use with the various embodiments disclosed herein.Other computer systems suitable for such use can include additional orfewer subsystems. In addition, bus 1014 is illustrative of anyinterconnection scheme serving to link the subsystems. Other computerarchitectures having different configurations of subsystems can also beutilized.

FIG. 11 is a block diagram illustrating an embodiment of a system forresolving a name of a domain of a decentralized blockchain-based nameservice. Client 1102 includes web browser 1104. A user uses web browser1104 executing on client 1102 (e.g., computer, mobile device, etc.) torequest content referenced by a name identifier including a domain name.For example, the name identifier includes a human-friendly hostname/URL(Uniform Resource Locator) that is to be resolved to obtain a targetidentifier (e.g., IP address) that is to be used to request the desiredcontent. Traditional domains that are not blockchain based are typicallyresolved by web browser 1104 by contacting a Domain Name System (DNS)server to obtain a DNS record corresponding to a domain name. However invarious embodiments, a name of a domain of a blockchain-based nameservice is to be resolved by a lookup of a corresponding record on ablockchain. For example, the process of FIG. 6 is used to request andobtain target records for a domain of a blockchain-based name service.

In some embodiments, web browser 1104 has been specifically configuredto natively handle resolution of a name of a domain of ablockchain-based name service by natively performing a lookup of acorresponding record managed on a blockchain. For example, when webbrowser 1104 detects that a provided content location identifier (e.g.,URL) for a requested content includes a name of a domain of ablockchain-based name service, web browser 1104 contacts blockchain 1106of the blockchain-based name service (e.g., via a smart contract) vianetwork 1100 to obtain one or more records corresponding to the domainof the provided content location identifier. In various embodiments, therecord(s) provide configuration information (e.g., preferred protocol),DNS record(s), target IP address, redirection information, or any otherstored information that can be used to obtain content referenced usingthe domain of the blockchain-based name service. FIG. 2 and relateddescriptions detail an embodiment of an implementation of blockchainsmart contracts of a decentralized blockchain-based name service.

In some embodiments, web browser 1104 is unable to natively handleresolution of a name of a domain of a blockchain-based name service anda browser extension or a browser plugin that has been installed on webbrowser 1104 is utilized to handle the resolution of the name of thedomain of the blockchain-based name service. For example, when theplugin detects that a provided content location identifier for arequested content includes a name of a domain of a blockchain-based nameservice, the plugin of web browser 1104 contacts blockchain 1106 of theblockchain-based name service (e.g., via a smart contract) via network1100 to obtain one or more records corresponding to the domain of theprovided content location identifier. In various embodiments, therecord(s) provide configuration information (e.g., preferred protocol),DNS record(s), target IP address, redirection information, or any otherstored information that can be used to obtain content referenced usingthe domain of the blockchain-based name service. FIG. 2 and relateddescriptions detail an embodiment of an implementation of blockchainsmart contracts of a decentralized blockchain-based name service.

In some embodiments, rather than requiring native handling, browserextension, or a plugin-based resolution of a name of a domain of ablockchain-based name service, the resolution is performed via a remoteserver/gateway. For example, regardless of whether a domain to beresolved is a traditional DNS domain or a domain of a blockchain-basedname service, attempts to perform resolution of a name of a domain of ablockchain-based name service are performed by contacting a remotegateway/server that will perform the resolution for the web browser. Forexample, browser 1104 contacts blockchain domain supporting DNS gateway1108 to resolve a name of a domain included in a content locationidentifier (e.g., URL). DNS gateway 1108 supports resolutions of bothtraditional DNS domains and domains of a blockchain-based name service,and it is configured to determine whether a name of the domain to beresolved is a domain of a blockchain-based name service (e.g., based ona top level domain identifier of the domain to be resolved). Forexample, the DNS gateway is configured to access records managed onblockchain 1106 for the domain and provide resolution records. Even ifthe domain to be resolved is a blockchain-based domain, the records maybe provided in conformance with the traditional DNS standard protocol tothe web browser that only understands traditional DNS responses. Forexample, from the perspective of a web browser, DNS gateway 1108functions as a traditional DNS gateway/server despite it being extendedto support blockchain-based domains. In the event the domain is a domainof a blockchain-based name service, DNS gateway 1108 contacts blockchain1106 of the blockchain-based name service (e.g., via a smart contract)via network 1100 to obtain one or more records corresponding to thedomain to be resolved. In various embodiments, the record(s) provideconfiguration information (e.g., preferred protocol), DNS record, targetIP address, redirection information, or any other stored informationthat can be used to obtain content referenced using the domain of theblockchain-based name service. The resolution response is returned tobrowser 1104 by DNS gateway 1108 based on the obtained record(s) fromthe blockchain. If it is determined that the domain is not a domain of ablockchain-based name service but a standard domain (e.g., managed byICANN) that is not a blockchain-based domain, DNS gateway 1108 performsthe resolution as would be performed by a typical DNS server/gatewaywithout using a blockchain.

In some embodiments, one or more of the record(s) obtained from theblockchain for domain resolution specify a decentralized web contentidentifier that can be used to obtain content from decentralized contentnetwork 1112. For example, one of the record(s) obtained from theblockchain includes an InterPlanetary File System (IPFS) content hashidentifier. Decentralized content network 1112 includes one or moreservers and/or devices that function as peer-to-peer networks to providecontent in a distributed manner. In some embodiments, one or more of therecord(s) obtained from the blockchain for domain resolution include anaddress of a gateway/server (e.g., decentralized web gateway 1110) thatfunctions as a proxy to obtain and provide requested decentralized webcontent for a requester that does not directly support a decentralizedweb protocol. For example, web browser 1104 may not support adecentralized web content protocol such as IPFS, and the web browser isprovided in a record returned from resolving a domain referencingdecentralized web content, a redirect address to decentralized webgateway 1110. When decentralized web gateway 1110 is contacted via theredirect address, decentralized web gateway 1110 can function as a proxyto contact decentralized content network 1112 to obtain and provide thecontent referenced by a decentralized web content hash identifierincluded in a record obtained from the blockchain for the domain. Ineffect, decentralized web gateway 1110 functions as a middle proxyserver that allows decentralized web content to be requested andreceived by a requester utilizing traditional requests/responses (e.g.,HTTP requests/responses) not utilizing a decentralized web protocol.

Blockchain 1106 includes a network of computers, servers, or otherdevices that maintain a blockchain ledger and execute smart contractsthat maintain and execute the blockchain-based name service. Forexample, Blockchain 1106 includes devices that maintain and execute theEthereum blockchain. Examples of use and management of the blockchainhave been described previously in the specification.

FIG. 12 is a flowchart illustrating an embodiment of a process forresolving a name identifier. In some embodiments, at least a portion ofthe process of FIG. 12 is performed by web browser 1104 of FIG. 11 . Insome embodiments, at least a portion of the process of FIG. 12 isperformed by a browser plugin and/or browser extension of web browser1104 of FIG. 11 . In some embodiments, at least a portion of the processof FIG. 12 is performed by DNS gateway 1108 of FIG. 11 .

At 1202, a request to resolve a name identifier of web content isreceived. For example, a user inputs the name identifier into an addressbar of a web browser. In another example, the name identifier isreferenced by web content or another program for retrieval of the webresource referenced by the name identifier. In some embodiments, therequest is received by the native component of the web browser and/or aplugin/extension of the web browser. In some embodiments, the request isprovided by a web browser and received at a domain name resolutionserver/gateway (e.g., DNS gateway 1108). Examples of the web contentinclude a webpage, an image, program code, content referenced by awebpage, or any other content able to be referenced and obtained via theinternet.

At 1204, it is determined that a name of a domain included in the nameidentifier is to be resolved using a blockchain. While existingtraditional DNS domains are to be resolved using traditional DNSservers, certain domains are to be resolved using the blockchain of ablockchain-based name service. In some embodiments, the determination onwhether to resolve the name of the domain using a blockchain isperformed automatically based on a programmatic analysis of its domainextension or top-level domain (e.g., letters at end of domain name afterdot). In some embodiments, there exists a predetermined list of one ormore specific domain extensions/top-level domains to be resolved using ablockchain, and if the extension/top-level domain of the name of thedomain to be resolved matches an entry on this list, it is determinedthat the name of the domain included in the name identifier is to beresolved using a blockchain. For example, extensions/top-level domains“.crypto” and “.zil”, etc. are included in the list and if the domain ofthe name identifier includes any of these top-level domains, it isautomatically determined to resolve it using a blockchain. If the domainof the name identifier does not include any of these top-level domains,it is automatically determined to resolve it using traditionalnon-blockchain based resolution (e.g., via traditional DNS resolution).

At 1206, a request is made to a smart contract of the blockchain for oneor more resolution records for the domain, and at 1208, the requestedrecord(s) are received. For example a call is made to a function of thesmart contract to request resolution records of a specified domain.Examples of the smart contract are shown in FIGS. 1 and 2 . In someembodiments, the request is made using the process of FIG. 6 . The smartcontract includes self-executing code that functions to implement anagreement deployed to store state and execute code on the blockchain.This allows an agreed upon contract code to execute in a distributed andverifiable manner. The smart contracts of the decentralizedblockchain-based name service govern how domains are created, managed,and utilized. For example, the smart contract can be invoked to obtainone or more records that can be used to resolve the domain of the nameidentifier to obtain the corresponding web resource. In someembodiments, when the request is made to the smart contract of theblockchain, the smart contract returns the one or more resolutionrecords managed in the blockchain for the domain of the name identifierto be resolved.

Examples of the resolution records include any traditional DNS record(e.g., redirect address/URL of a redirect record, IP address of a dns.Arecord, or any other record supported by the DNS protocol), anydecentralized web record (e.g., hash value of any supporteddecentralized web protocol), and configuration record(s) (e.g., recordspecifying a list of preferred protocols in a preferred order such thatif multiple protocols are supported by the destination of the resolveddomain, the protocol to be utilized is selected based on the order ofthe list).

At 1210, the received one or more records are used to resolve the nameof the domain of the name identifier and obtain the referenced webcontent. In some embodiments, the names of the domain in the nameidentifier are replaced with an IP address included in the record(s) andused to request and obtain the web resource via the Internet. In someembodiments, a redirect address included in the received record(s) isused to perform a DNS redirection by requesting content of the redirectaddress instead. In some embodiments, a decentralized web content hashidentifier included in the received record(s) is used to request andobtain decentralized web content from a distributed content network.Preferences and configurations for requesting and obtaining thereferenced web content may be specified in the received one or morerecords.

FIG. 13 is a flow diagram illustrating an embodiment of a process forrequesting and receiving decentralized web (dWeb) content. An example ofweb browser 1302 is web browser 1104 of FIG. 11 . An example ofblockchain 1304 is blockchain 1106 of FIG. 11 . An example ofdecentralized content network 1306 is decentralized content network 1112of FIG. 11 .

In the example flow diagram shown, at 1312, a user requests contentreferenced by a provided name identifier “unstoppable.crypto.” Thisprovided name identifier may have been provided as a user input into theaddress bar of a web browser. A native component or a plugin/extensioncomponent of the web browser is configured to detect that the “.crypto”portion of the name of the domain of the provided name identifier is tobe resolved using a blockchain of a blockchain-based name service.

At 1314, a token version of the name of the domain of the provided nameidentifier is calculated. For example, rather than using the textversion of the domain, a hash identifier is calculated by hashing thetext of the domain. The hash identifier serves as the identifier of thenon-fungible token representing the domain and is a more storageefficient representation of the name of the domain and the name of thedomain can be easily converted to a hash identifier using a hashfunction.

At 1316, target records for the domain (identified by the calculatedhash) are requested from blockchain 1304 (e.g., blockchain of ablockchain-based name service able to resolve the top-level domain ofthe domain). For example, a request is sent to a smart contract of theblockchain requesting resolution records associated with resolving andaccessing content associated with the domain of the name identifier.

At 1318, the requested records are received. The received records mayinclude configuration record(s) as well as target location/contentrecords of the domain for any supported protocol.

At 1320, the decentralized web content identifier is extracted from thereceived records. For example, a decentralized web content hashidentifier for a decentralized web protocol identified as supported fromthe received records is obtained from the received records.

At 1324, decentralized web content identified by the extracteddecentralized web target content identifier is requested fromdecentralized content network 1306. At 1326, the requested decentralizedweb content is received from decentralized content network 1306.

FIG. 14 is a flow diagram illustrating an embodiment of a process forrequesting and receiving decentralized web content via remote gateways.An example of web browser 1402 is web browser 1104 of FIG. 11 . Anexample of DNS gateway 1404 is DNS gateway 1108 of FIG. 11 . An exampleof decentralized web gateway 1406 is decentralized web gateway 1110 ofFIG. 11 . An example of blockchain 1408 is blockchain 1106 of FIG. 11 .An example of decentralized content network 1410 is decentralizedcontent network 1112 of FIG. 11 .

At 1412, browser 1402 requests DNS resolution of a domain of a providedname identifier to DNS gateway 1404. For example, when a user requestscontent referenced by a provided name identifier “brave.crypto,” thename of the domain included in the provided name identifier is to beresolved. Web browser 1402 has not been configured to directly handleblockchain-based domains and simply relies on its traditional DNSresolution flow by requesting its resolution to DNS gateway 1404.

DNS gateway 1404 is configured to detect that the “.crypto” portion ofthe domain of the provided name identifier is to be resolved using ablockchain of a blockchain-based name service. At 1414, a token versionof the name of the domain of the provided name identifier is calculated.For example, rather than using the text version of the name of thedomain, a hash identifier is calculated by hashing the text of the nameof the domain. The hash identifier serves as the identifier of thenon-fungible token representing the domain and is a more storageefficient representation of the name of the domain and the name of thedomain can be easily converted to a hash identifier using a hashfunction.

At 1416, target records for the domain (identified by the calculatedhash) are requested from blockchain 1408 (e.g., blockchain of ablockchain-based name service able to resolve the top-level domain ofthe name identifier). For example, a request is sent to a smart contractof the blockchain requesting a list of records associated with resolvingand accessing content associated with the domain of the name identifier(e.g., domain records).

At 1418, the requested records are received. The received records mayinclude configuration record(s) (e.g., including preferred decentralizedweb protocol) and may also include target location/content records ofthe domain for any supported protocol. The received records indicatethat a decentralized web content is referenced by the domain.

In some embodiments, it is determined whether the browser that requestedthe resolution of the domain is able to directly handle/accessdecentralized web content. If it is determined that browser 1402 isunable to directly handle/access decentralized web content, at 1420, adecentralized web gateway IP address and decentralized webconfigurations are obtained from the received records to allow the webbrowser to access decentralized web content via decentralized webgateway 1406. If it is determined that the browser is able to directlyhandle/access decentralized web content, a decentralized web contenthash identifier included in the received records may be returneddirectly to the browser to allow it to directly contact an appropriatedecentralized content network to obtain the decentralized web content.

At 1422, a DNS response including an “A” response record with an IPaddress of the decentralized web gateway is provided in response to therequest of 1412. In some embodiments, the provided response alsoindicates a decentralized content hash identifier extracted from thereceived records.

At 1424, web browser 1402 contacts decentralized web gateway 1406 usingthe received IP address to request content referenced by the nameidentifier.

At 1426, a token version of the domain of the provided name identifieris calculated. At 1428, target records for the domain (identified by thecalculated hash) are requested from blockchain 1408 (e.g., blockchain ofa blockchain-based name service able to resolve the top-level domain ofthe domain of the name identifier). For example, a request is sent to asmart contract of the blockchain requesting a list of records associatedwith resolving and accessing content associated with the domain of thename identifier (e.g., resolution records for the domain). At 1430, therequested records are received. The received records include adecentralized web content hash identifier. In an alternative embodiment,rather than performing 1426-1430, the decentralized web target contentidentifier received in 1422 and provided in association with the requestof 1424 is utilized.

At 1432, decentralized web content identified by the extracteddecentralized web target content identifier is requested todecentralized content network 1410. At 1434, the requested decentralizedweb content is received at decentralized web gateway 1406 fromdecentralized content network 1410. This decentralized web content isstored at gateway 1406 and at 1436 provided to browser 1402 via atraditional Hypertext Transfer Protocol (HTTP) as a response to therequest of 1424.

FIG. 15 is a flowchart illustrating an embodiment for handling protocolpriority when performing domain resolution for a domain resolved using ablockchain of a blockchain-based name service. In some embodiments, atleast a portion of the process of FIG. 15 is performed by browser 1104and/or DNS gateway 1108 of FIG. 11 . A name of the domain can beresolved into any one of different targets for different protocols thatare supported. For example, the domain can be resolved into an IPaddress if HTTP protocol is to be utilized or the domain can be resolvedinto a decentralized web content hash identifier if the decentralizedweb protocol (e.g., IPFS) is to be utilized. In some embodiments, theprocess of FIG. 15 can be utilized to select among different domainresolution options.

At 1502, resolution record(s) for a name of a domain to be resolved areobtained using a blockchain of a blockchain-based name service. In someembodiments, the resolution records include records received in 1208 ofFIG. 12, 1318 of FIG. 13, 1418 of FIG. 14 , and/or 1430 of FIG. 14 . Forexample, the resolution records include records managed on theblockchain for the specified domain for use when resolving to a targetidentifier. The received resolution record(s) may includeconfigurations, preferences, and/or one or more target records for oneor more different protocols.

At 1504, an ordered list of preferred protocols is determined using thereceived records. If the domain has been specified in the blockchainrecords to support multiple protocols, one of the protocols is to beselected for use. The resolved target identifier for the domain will bethe target identifier specified for that protocol among the differenttarget identifiers specified for the different supported protocols. Oneof the received configuration records may specify an ordering ofprotocol preference such that the selected protocol is the one with thehighest preference (e.g., appears in the list before another validoption) among protocols in the list that have been configured to besupported for the domain. In some embodiments, if the received recordsdo not specify a preferred ordering of protocol or specifies anincomplete list, a default or modified preference ordering is utilized.For example, if a preferred order is not specified, the preferred orderis [“bzz,” “ipfs,” “https,” “http,” “ftp”]. In some embodiments, one ormore protocols associated with decentralized web protocols but notspecified in a specified preference are added to the beginning (higherpriority) of a partially provided list or at the end of other specifieddecentralized web protocols in the partially provided list. In someembodiments, “http” protocol is added to the end (lower priority) of thepartially provided list.

At 1506, each of the protocols in the ordered list is iterated in theorder of the list until a matching target identifier is found. Forexample, there exists a different target identifier record for each ofany supported protocol of the domain, and it is determined whether thereexists a target identifier record for the protocol in the list beingiterated. If a target identifier record has been defined for theprotocol according to a record in the received record(s) for the domain,it is determined that the matching target identifier has been found. Ifa target identifier record has not been defined for the protocol in thereceived record(s), the iteration proceeds to the next protocol in theorder of the list.

At 1508, if a matching target content identifier has been identified, itis determined to resolve the name of the domain using the matchingprotocol. The matching target content identifier is then returned foruse in resolving and obtaining reference content of the domain.

At 1510, if no matching target content identifier has been identifiedafter iterating through the entire ordered list of protocols, the domainis redirected, if applicable. For example, one of the received recordsmay specify a redirect address/identifier for the domain, and if theredirect address/identifier exists, the domain is redirected byreturning the redirect address/identifier to allow a recipient tocontact the redirect address/identifier instead.

Although the foregoing embodiments have been described in some detailfor purposes of clarity of understanding, the invention is not limitedto the details provided. There are many alternative ways of implementingthe invention. The disclosed embodiments are illustrative and notrestrictive.

What is claimed is:
 1. A method, comprising: receiving a request toresolve at least a name of a domain of a name identifier; automaticallydetermining that the name of the domain is to be resolved using ablockchain; using the identifier of the non-fungible token to send arequest to a smart contract associated with the blockchain to obtain oneor more resolution records for the domain, wherein the blockchain storesthe non-fungible token associating the domain to an account address ofan owner of the domain; receiving the one or more resolution records ofthe domain; and utilizing the received one or more resolution records toresolve at least the name of the domain.
 2. The method of claim 1,wherein the name identifier includes a Uniform Resource Locator (URL).3. The method of claim 1, wherein the request is received at a DomainName System (DNS) gateway configured to handle resolution of domains ofa blockchain-based name service.
 4. The method of claim 1, whereindetermining that the name of the domain is to be resolved using theblockchain includes determining that a top-level domain included in thename of the domain matches an entry in a list of domains to be resolvedusing the blockchain.
 5. The method of claim 1, wherein thedetermination that the name of the domain is to be resolved using theblockchain is performed using an extension of a web browser.
 6. Themethod of claim 1, wherein the identifier of the non-fungible token iscalculated using a hash function.
 7. The method of claim 1, wherein theone or more resolution records include an Internet Protocol (IP)address.
 8. The method of claim 1, wherein the one or more resolutionrecords include a cryptocurrency address.
 9. The method of claim 1,wherein the one or more resolution records includes a user identifier.10. The method of claim 1, wherein the one or more resolution recordsinclude a redirect address.
 11. The method of claim 1, wherein the oneor more resolution records include a decentralized web content hashidentifier.
 12. The method of claim 1, wherein the one or moreresolution records include a plurality of target identifiers fordifferent protocols.
 13. The method of claim 12, wherein utilizing thereceived one or more resolution records to resolve the name of thedomain includes selecting one of the plurality of target identifiersbased on an ordered list of protocol preferences.
 14. The method ofclaim 13, wherein the ordered list of protocol preferences is at leastin part specified in the one or more resolution records received usingthe blockchain.
 15. The method of claim 1, wherein utilizing thereceived one or more resolution records to resolve the name of thedomain includes providing a response including at least a portion of theone or more resolution records to a web browser.
 16. The method of claim1, wherein utilizing the received one or more resolution records toresolve the name of the domain includes providing an identifier of adecentralized web gateway.
 17. The method of claim 16, wherein inresponse to a request made to the decentralized web gateway using theprovided identifier of the decentralized web gateway, the decentralizedweb gateway obtains from a decentralized content network, decentralizedweb content referenced by a decentralized web content hash valueincluded in the one or more resolution records of the domain, and storesand provides the obtained decentralized web content.
 18. The method ofclaim 17, wherein the decentralized web gateway obtains thedecentralized web content referenced by the decentralized web contenthash value using a decentralized web protocol but provides the obtaineddecentralized web content using a protocol that is not the decentralizedweb protocol.
 19. A system, comprising: a processor configured to:receive a request to resolve at least a name of a domain of a nameidentifier; automatically determine that the name of the domain is to beresolved using a blockchain; determine an identifier of a non-fungibletoken corresponding to the domain of the name identifier; use theidentifier of the non-fungible token to send a request to a smartcontract associated with the blockchain to obtain one or more resolutionrecords for the domain, wherein the blockchain stores the non-fungibletoken associating the domain to an account address of an owner of thedomain; receive the one or more resolution records of the domain; andutilize the received one or more resolution records to resolve at leastthe name of the domain; and a memory coupled to the processor andconfigured to provide the processor with instructions.
 20. A computerprogram product embodied in a non-transitory computer readable mediumand comprising computer instructions for: receiving a request to resolveat least a name of a domain of a name identifier; automaticallydetermining that the name of the domain is to be resolved using ablockchain; determining an identifier of a non-fungible tokencorresponding to the domain of the name identifier; using the identifierof the non-fungible token to send a request to a smart contractassociated with the blockchain to obtain one or more resolution recordsfor the domain, wherein the blockchain stores the non-fungible tokenassociating the domain to an account address of an owner of the domain;receiving the one or more resolution records of the domain; andutilizing the received one or more resolution records to resolve atleast the name of the domain.